package Week5;

import java.util.Scanner;

class MyThread extends Thread{
	
	public MyThread(int sc){
		for(int i=0;i<sc;i++)
			System.out.println(i);
		
	}
	public void run(){
		System.out.println(Thread.currentThread().getName()+" "+isAlive());
	}
}

public class Test {
	public static void main(String[] arge){
		 Scanner sc = new Scanner(System.in);
	        Thread t1 = new MyThread(Integer.parseInt(sc.next()));
	        t1.start();

	}
}
